//
//  commentViewController.h
//  weibo3
//
//  Created by Tian Wu on 11-4-19.
//  Copyright 2011年 nfsysu. All rights reserved.
//

#import <Cocoa/Cocoa.h>
#import "RootViewController.h"
#import "ViewImage.h"

@class ViewImage;
@class RootViewController;

@interface commentViewController : NSWindowController
<NSTableViewDelegate, NSTableViewDataSource>{
        
        IBOutlet NSTextField *text;

        IBOutlet NSTableView	*listView;
        IBOutlet RootViewController *_rootViewController;
        IBOutlet ViewImage *_viewImageWindow;
    
    IBOutlet NSButton *withRepostButton;
    
        IBOutlet NSProgressIndicator *progress;
    
        NSArray *comments;
        
        Status *commented;
        
}

@property (readwrite,retain) Status *commented;
@property (readwrite,retain) NSArray *comments;

- (BOOL)edit:(Status *)startingValues from:(id)sender;

- (IBAction) sendComment:(id) sender;
- (IBAction) cancel:(id) sender;

- (void) reloadTable;
@end
